package com.shujia.utils

import java.util.Properties

object Config {
  // 加载配置文件
  val prop = new Properties()
  prop.load(this.getClass.getClassLoader.getResourceAsStream("config.properties"))

  def getBoolean(key: String): Boolean = {
    prop.getProperty(key).toBoolean
  }

  def getString(key: String): String = {
    prop.getProperty(key)
  }

}
